package primeNums;

import java.util.ArrayList;
import java.util.List;
import static primeNums.PrimeNums.generate;

import junit.framework.TestCase;

public class PrimeNumsTest extends TestCase {
	
	private List<Integer> list(int... ints){
		
		List<Integer> list=new ArrayList<Integer>();
	
		for(int i:ints)
			list.add(i);
		
		return list;

	}
	public void testOne() throws Exception{
		assertEquals(list(),generate(1));
	}

	public void testTwo() throws Exception{
		assertEquals(list(2),generate(2));
	}

	public void testThree() throws Exception{
		assertEquals(list(3),generate(3));
	}
	
	public void testFour() throws Exception{
		assertEquals(list(2,2),generate(4));
	}
	
	public void testSix() throws Exception{
		assertEquals(list(2,3),generate(6));
	}
	
	public void test8() throws Exception{
		assertEquals(list(2,2,2),generate(8));
	}
	public void test9() throws Exception{
	
		assertEquals(list(3,3),generate(9));
	}
}


